home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / boot / initrd.img-2.6.28-15-generic / initrd.img-2.6 / scripts / init-bottom / udev
Encoding:
Text File  |  2009-10-12  |  495 b   |  29 lines

  1. #!/bin/sh -e
  2. # initramfs premount script for udev
  3.  
  4. PREREQ=""
  5.  
  6. # Output pre-requisites
  7. prereqs()
  8. {
  9.     echo "$PREREQ"
  10. }
  11.  
  12. case "$1" in
  13.     prereqs)
  14.     prereqs
  15.     exit 0
  16.     ;;
  17. esac
  18.  
  19.  
  20. # Stop udevd, we'll miss a few events while we run init, but we catch up
  21. pkill udevd
  22.  
  23. # udevd might have been in the middle of something when we killed it,
  24. # but it doesn't matter because we'll do everything again in userspace
  25. rm -rf /dev/.udev/queue
  26.  
  27. # Move /dev to the real filesystem
  28. mount -n -o move /dev ${rootmnt}/dev
  29.